export {}

class Window{
  private static instance: Window
  // private constructor() {
  //
  // }
  public static getInstance(){
    if(!Window.instance){
      Window.instance = new Window()
    }
    return Window.instance
  }
}

const w1 = Window.getInstance()
const w2 = Window.getInstance()
console.log(w1 === w2)

